home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xkw / thermop.h < prev   
C/C++ Source or Header  |  1999-01-01  |  3KB  |  90 lines

  1. /* $XConsortium: ThermoP.h,v 1.6 91/03/13 20:12:07 rws Exp $ */
  2.  
  3. /* Copyright    Massachusetts Institute of Technology    1987, 1988
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation, and that the name of M.I.T. not be used in advertising or
  10.  * publicity pertaining to distribution of the software without specific,
  11.  * written prior permission.  M.I.T. makes no representations about the
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  16.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  17.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  19.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  20.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  */
  23.  
  24. #ifndef _ThermoP_h
  25. #define _ThermoP_h
  26.  
  27. #include "Thermo.h"
  28. /* include superclass private header file */
  29. #include <X11/Xaw/SimpleP.h>
  30.  
  31. /* define unique representation types not found in <X11/StringDefs.h> */
  32.  
  33. #define XtRThermoResource "ThermoResource"
  34.  
  35. typedef struct {
  36.     int empty;
  37. } ThermoClassPart;
  38.  
  39. typedef struct _ThermoClassRec {
  40.     CoreClassPart    core_class;
  41.     SimpleClassPart    simple_class;
  42.     ThermoClassPart    thermo_class;
  43. } ThermoClassRec;
  44.  
  45. extern ThermoClassRec thermoClassRec;
  46.  
  47. typedef struct {
  48.     /* resources */
  49.     XFontStruct        *font;
  50.     unsigned long   mercuryColor;
  51.     unsigned long   textColor;
  52.     unsigned long   tickColor;
  53.     int            current;
  54.     int            minimum;
  55.     int            maximum;
  56.     int            reqThickness;
  57.     int            reqMinorStart;
  58.     int            reqMajorStart;
  59.     int            reqMinorStep;
  60.     int            reqMajorStep;
  61.     Dimension        reqStartPad;
  62.     Dimension        reqEndPad;
  63.     Dimension        reqMajorTickLen;
  64.     Dimension        reqMinorTickLen;
  65.     Boolean        vertical;
  66.     /* private state */
  67.     int            thickness;
  68.     int            minorStart;
  69.     int            majorStart;
  70.     int            minorStep;
  71.     int            majorStep;
  72.     Dimension        startPad;
  73.     Dimension        endPad;
  74.     Dimension        majorTickLen;
  75.     Dimension        minorTickLen;
  76.     Dimension        textWidth;
  77.     GC            mercuryGC;
  78.     GC            textGC;
  79.     GC            tickGC;
  80. } ThermoPart;
  81.  
  82.  
  83. typedef struct _ThermoRec {
  84.     CorePart        core;
  85.     SimplePart        simple;
  86.     ThermoPart        thermo;
  87. } ThermoRec;
  88.  
  89. #endif /* _ThermoP_h */
  90.